(function(angular){

  var top250 = angular.module('top250',['ngRoute']);
  top250.config(['$routeProvider',function($routeProvider){
    $routeProvider.when('/top250',{
      templateUrl:'top250/top250.html',
      controller:'top250Ctrl'
    })
  }]);
  top250.controller('top250Ctrl',['$scope','$http',function ($scope,$http) {
      $scope.loading = true;
      setTimeout(function () {
          $http.get('./top250/data.json')
              .then(function (res){
                  $scope.loading = false;
                  $scope.data = res.data;
              });
      },1500);

  }])


})(angular);
